package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleDao {
    public Set<Role> findByUserId(Integer userId);

    Page<CheckGroup> findByCondition(String queryString);

    void deleteById(Integer id);

    void setRoleAndPermission(Map<String, Integer> map);

    void addRole(Role role);

    void setRoleAndMenu(Map<String, Integer> map);

    Role findById(Integer id);

    List<Role> findAll();
}
